# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.4.1)

link_directories(src/main/jni/libs)

include_directories(src/main/jni/)

link_libraries(log)

add_library(serial_port SHARED
    src/main/jni/SerialPort.c)

add_library(crc8 SHARED
    src/main/jni/CRC8.c)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/libs/${ANDROID_ABI})


